<?php

	$name = escapestr(mb_strtolower($_REQUEST['name']));
	$query  = "SELECT * from users where `status`='0' and `name`='$name'";
	$result = mysql_query($query);
	
	if (mysql_num_rows($result)){ 
		$profileinfo = mysql_fetch_assoc($result);

		$name = $profileinfo['name'];
		$signup = $profileinfo['signup'];
		$email = $profileinfo['email'];

		SendVerification($name,$signup,$email); 

		$SITE_MIDDLE .= FormatElement("Verification Mail","Verification Mail Resent"); 
	} else 
	$SITE_MIDDLE .= FormatElement("Verification Mail","Invalid username"); 


?>
